<?php

use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateEnNewsTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        //最新动态
        Schema::create('en_news', function (Blueprint $table) {
            $table->increments('id');
            $table -> integer('classify_id')    ->default(0)->comment('分类id');
            $table -> integer('img_id')         ->default(0)->comment('展示图');
            $table -> integer('thumb_img_id')   ->default(0)->comment('缩略图');
            $table -> string("title")           ->nullable()->comment('标题');
            $table -> string("desc")            ->nullable()->comment('描述');
            $table -> text   ('content')        ->nullable()->comment('内容');
            $table -> integer('is_show')        ->default(0)->comment('是否显示');
            $table -> integer('read_num')       ->default(0)->comment('阅读数');
            $table -> softDeletes();
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        //
    }
}
